package com.jk.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.jk.dao.ServiceDao;
import com.jk.pojo.ServiceEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName ServiceService
 * @Descripttion TODO
 * @Author DELL
 * @Date 2022/10/16 20:33
 * @Version 0.001
 */
@Service
public class ServiceService {

    @Autowired
    private ServiceDao serviceDao;

    /**
     * @Author: binzi
     * @Description:查询服务包
     * @Date: 2022/10/16 20:35
     * @Return: java.util.List<com.jk.pojo.ServiceEntity>
     **/
    public List<ServiceEntity> findService() {
        QueryWrapper<ServiceEntity> queryWrapper = new QueryWrapper<>();
        List<ServiceEntity> serviceEntities = serviceDao.selectList(queryWrapper);
        return serviceEntities;
    }
}
